@extends('layouts.admin.application')

@section('css')
    <link rel="stylesheet" href="/vendor/daterangepicker/daterangepicker.css">
@endsection

@section('content')

    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">会员卡充值</strong> /
                <small>Edit</small>
            </div>
        </div>
        <hr>
        @include('admin._flash')

        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-12">

                <form class="am-form" action="/admin/addOrUpdateRecharge" method="post">
                    {{ csrf_field() }}
                    <input type="hidden" name="id" value="{{$rechargeInfo->id}}">

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            充值面额
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="denomination" value="{{$rechargeInfo->denomination}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：充3000元则填写3000</div>
                    </div>
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">
                            赠送额度
                        </div>
                        <div class="am-u-sm-8 am-u-md-4">
                            <input type="text" class="am-input-sm" name="preferential" value="{{$rechargeInfo->preferential}}">
                        </div>
                        <div class="am-hide-sm-only am-u-md-6">如：赠送100元则填写100，不赠送则填0</div>
                    </div>
                    {{-- <div class="am-g am-margin-top">
                         <div class="am-u-sm-4 am-u-md-2 am-text-right">
                             操作员
                         </div>
                         <div class="am-u-sm-8 am-u-md-4">
                             <input type="text" class="am-input-sm" name="contro">
                         </div>
                         <div class="am-hide-sm-only am-u-md-6"></div>
                     </div>--}}


                    <div class="am-margin">
                        <button type="submit" class="am-btn am-btn-primary am-radius">提交保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>


@endsection
@section('js')
    <script src="/vendor/html5-fileupload/jquery.html5-fileupload.js"></script>
    <script src="/js/upload.js"></script>



    <script>
        $(function () {
//文件上传
            //文件上传





        })


    </script>
@endsection